﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="M_EditProductInfo.aspx.cs" Inherits="Web_HengliSeed.Sys_Manage.M_EditProductInfo"  EnableViewState="true" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <link rel="stylesheet" type="text/css" href="../ueditor/themes/default/ueditor.css" />
    <script src="../ueditor/editor_all.js" type="text/javascript"></script>
    <script src="../ueditor/editor_config.js" type="text/javascript"></script>

    <link href="../Style/Manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JavaScript/Jquery.js"></script>
    <script type="text/javascript" src="../JavaScript/Admin.js"></script>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <div class="div_All">
    <div class="Body_Title">产品信息管理 》》编辑产品信息</div>
        <hr />
    
    </div>
    <table cellpadding="2" cellspacing="1">
        <tr>
            <td style="width:75px;">产品类别：</td>
            <td>
                <asp:DropDownList ID="DDLProClass" runat="server">
                </asp:DropDownList><span class="WarnMes">*</span>产品的分类信息，必选。
                &nbsp;&nbsp;&nbsp;&nbsp;
                <%
                if (!string.IsNullOrEmpty(Request["lan"]))
                {
                    if (Request["lan"] == "en")
                    {
                        Response.Write("<input type=\"button\" value=\"中文版\" onclick='javascript:location.href=\"M_EditProductInfo.aspx?lan=cn\"' />");
                    }
                    else
                    {
                        Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_EditProductInfo.aspx?lan=en\"' />"); 
                    }
                }
                else
                {
                    Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_EditProductInfo.aspx?lan=en\"' />");
                }
                 %>&nbsp;
                 <asp:Button ID="BtnProSave" runat="server" Text=" 保存信息 " onclick="BtnSave_Click" />&nbsp;
                </td>
            <td rowspan="4"><img src="<%=ProImage%>" alt="图片信息..." class="ProImg"/></td>
        </tr>
        <tr>
            <td>
                产品名称：</td>
            <td>
            
                <input id="txtProName" type="text" style="width:300px;" maxlength="35" runat="server"/><span class="WarnMes">*</span>产品的名称描述，25个汉字以内。
                
                </td>
        </tr>
        <tr >
            <td>
                产品视频：</td>
            <td>
                <asp:RadioButton ID="RBProGood" runat="server" ForeColor="Red" GroupName="Pro" 
                    Text="推荐产品" Checked="True" style=" display:none"/>
                <asp:RadioButton ID="RBProBase" runat="server" GroupName="Pro" Text="普通产品" style=" display:none" />

                <asp:Panel runat="server" ID="uploadPanel">
                
                <asp:FileUpload ID="UploadVideo" runat="server" Width="305px"/>
                <asp:Button ID="BtnUpLoadVideo" runat="server" onclick="BtnUpLoadVideo_Click" 
                    Text="←上传" />
                视频文件只支持avi格式！
                </asp:Panel>
                <asp:Panel runat="server" ID="videoPanel" Visible="false">
                    <asp:Label runat="server" ID="lblVPath" />
                    <asp:Button runat="server" ID="btnClearVideo" Text="删除" 
                        onclick="btnClearVideo_Click" />
                </asp:Panel>
                </td>
        </tr>
        <tr>
            <td>产品图片：
                </td>
            <td>
                <asp:FileUpload ID="UploadImg" runat="server" Width="305px"/>
                <asp:Button ID="BtnUpLoad" runat="server" onclick="BtnUpLoad_Click" 
                    Text="←上传" />
                <span class="WarnMes">*</span>图片尺寸请自主协调，图片大小控制在500K以内！
                </td>
        </tr>
        <tr>
            <td colspan="3">
                <textarea cols="10" rows="10" runat="server" id="txtProNote" ></textarea>
                <script type="text/javascript">
                    var ue = new baidu.editor.ui.Editor();
                    ue.render('txtProNote');
                    ue.addListener("selectionchange", function () {
                        var state = ue.queryCommandState("source");
                        var btndiv = document.getElementById("btns");
                        if (btndiv) {
                            if (state) {
                                btndiv.style.display = "none";
                            } else {
                                btndiv.style.display = "";
                            }
                        }

                    });
                    </script>

                </td>
        </tr>
        <tr>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                </td>
            <td>
                
                <input id="txtRe" type="reset" value=" 重置 " />&nbsp;<input id="BtnBackProList" type="button" value=" 返回 "  onclick='javascript:location.href="M_ProductList.aspx"'   /></td>
            <td></td>
        </tr>
    </table>
    <asp:HiddenField ID="HImageName" runat="server" Value="noImage.gif" />
    <asp:HiddenField ID="hfLan" runat="server" />
    <asp:HiddenField ID="hfVPath" runat="server" />
    </form>
    </body>
</html>
